package com.lxmes.sales.mapper;

import java.util.List;
import com.lxmes.sales.domain.NcPurchaseTemporaryPlan;

/**
 * 采购临时计划Mapper接口
 *
 * @author lx
 * @date 2023-06-06
 */
public interface NcPurchaseTemporaryPlanMapper
{
    /**
     * 查询采购临时计划
     *
     * @param id 采购临时计划主键
     * @return 采购临时计划
     */
    public NcPurchaseTemporaryPlan selectNcPurchaseTemporaryPlanById(Long id);

    /**
     * 查询采购临时计划列表
     *
     * @param ncPurchaseTemporaryPlan 采购临时计划
     * @return 采购临时计划集合
     */
    public List<NcPurchaseTemporaryPlan> selectNcPurchaseTemporaryPlanList(NcPurchaseTemporaryPlan ncPurchaseTemporaryPlan);
    public List<NcPurchaseTemporaryPlan> selectNcPurchaseTemporaryPlanBySupplierCode(NcPurchaseTemporaryPlan ncPurchaseTemporaryPlan);

    /**
     * 新增采购临时计划
     *
     * @param ncPurchaseTemporaryPlan 采购临时计划
     * @return 结果
     */
    public int insertNcPurchaseTemporaryPlan(NcPurchaseTemporaryPlan ncPurchaseTemporaryPlan);

    /**
     * 修改采购临时计划
     *
     * @param ncPurchaseTemporaryPlan 采购临时计划
     * @return 结果
     */
    public int updateNcPurchaseTemporaryPlan(NcPurchaseTemporaryPlan ncPurchaseTemporaryPlan);

    /**
     * 删除采购临时计划
     *
     * @param id 采购临时计划主键
     * @return 结果
     */
    public int deleteNcPurchaseTemporaryPlanById(Long id);

    /**
     * 批量删除采购临时计划
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNcPurchaseTemporaryPlanByIds(Long[] ids);

    List<NcPurchaseTemporaryPlan> getNcPurchaseTemporaryPlanByPlanNumber(NcPurchaseTemporaryPlan ncPurchaseTemporaryPlan);
}
